package com.jinzihan.junit;

import com.jinzihan.dao.ManagerDao;
import com.jinzihan.dao.impl.ManagerDaoImpl;
import com.jinzihan.entity.Manager;
import org.junit.jupiter.api.Test;

class ManagerDaoTest {
    ManagerDao managerDao = new ManagerDaoImpl();
    @Test
    void queryManagerByUsername() {
        Manager manager = managerDao.queryManagerByUsername("admin");
        Manager manager1 = managerDao.queryManagerByUsername("jzh168");
        System.out.println(manager1);
    }

    @Test
    void queryManagerByUsernameAndPassword() {
        Manager manager = managerDao.queryManagerByUsernameAndPassword("jzh168", "123456");
        System.out.println(manager);
    }
}